/*function widgets(){
  var tags=document.getElementsByTagName("*");
  var tagi,tagc=tags.length;
  for(tagi=0; tagi<tagc; ++tagi){
    var el=tags[tagi];
    var tagclass=el.className;
    switch(tagclass){
    case"": break;
    case"slider":
      var p=el.innerHTML.split(';');
      var value=(p.length>=4)?p[3]:50;
      el.min=0;
      el.max=100;
      el.value=50;
      el.style.backgroundColor="#fed";
      /*el.style.backgroundRepeat='no-repeat';
      el.style.backgroundImage='url("../res/loading.gif")';
      el.style.overflow="hide";
      el.innerHTML='0/100';
      el.addEventListener('click',mcslider,false);
      el.addEventListener('mouseup',muslider,false);
      el.addEventListener('mousedown',mdslider,false);
      el.addEventListener('mousemove',mmslider,false);
      break;
    case"slider0":

      bed.innerHTML+="\n*slider:"+el.innerHTML+"*";
      var p=el.innerHTML; //split pararms
      el.style.backgroundColor="#fed";
      el.style.width="100px";
      el.style.overflow="scroll";
      el.style.height=scrollbarsize()+"px";
      el.innerHTML='<div style="width:10000px">[-----------]</div>';
      break;
    default: bed.innerHTML+="*"+tagclass+"*";
    }
  }
}


var mcslider=function(e){
    var el=e.target;
    el.innerHTML='z:'+el.value;
    event.stopPropagation(); return false;
}
var mdslider=function(e){
    var el=e.target;
    el.innerHTML='z:'+e.which;
    event.stopPropagation();
    return false;
}
var muslider=function(e){
    var el=e.target;
    el.innerHTML='z:'+el.value;
    event.stopPropagation();
    return false;
}
var mmslider=function(e){
    var el=e.target;
    var x=e.clientX-el.offsetLeft;
    var y=e.clientY-el.offsetTop;
    var h=el.offsetHeight;
    var w=el.offsetWidth;
    var vx=((x<=el.offsetWidth)?x:el.offsetWidth);
    el.innerHTML='';
    event.stopPropagation();
    return false;
}*/


